<?php
// +----------------------------------------------------------------------
// | Author: 黄柯柯 keke.huang@ostengar.com
// +----------------------------------------------------------------------
namespace app\util;

class ErrorCode
{

    public static $illegalRequestError = [10012, '非法请求！'];

    public static function getCode($error)
    {
        return ['code' => $error[0], 'msg' => $error[1]];
    }
}
